import { _get, _post } from "../../utils/request";
import util from "../../utils/util";
const app = getApp();
Page({
    data: {},
    jump_resultxq(e) {
        console.log(e);
        app.vbizId = e.currentTarget.id
        dd.navigateTo({
            url: '/pages/result_xq/result_xq'
        })
    },
    search(e) {
        this.getResult(e);
    },
    getResult(keywords = "") {
        let params = {
            projectName: keywords,
            userId: app.userId
        };
        _get(`/testResult/select_finish`, params).then((res) => {
            console.log("历史检测", res);
            this.setData({
                list: res.data
            })
        });
    },
    onLoad() {
        dd.setNavigationBar({
            title: "历史检测",
            backgroundColor: "#142e4f",
            success() {},
            fail() {},
        });
        this.getResult()
    },
});